<template>
  <div class="service">
    <a-popover title="" placement="left">
      <div class="pop-qrcode" slot="content">
        <img :src="businessInfo.business_code" />
        <div class="text">专属投放顾问</div>
      </div>
      <div class="service-item">
        <img src="@/assets/images/service_1.png" />
      </div>
    </a-popover>

    <a-popover title="" placement="left">
      <div class="pop-qrcode" slot="content">
        <img
          src="https://csk-amp-stage.oss-cn-hangzhou.aliyuncs.com/web/img/chanmama_qrcode.0ec75931.png"
        />
        <div class="text">接收实时资讯</div>
      </div>
      <div class="service-item">
        <img src="@/assets/images/service_2.png" />
      </div>
    </a-popover>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  data() {
    return {
      show: false,
      business: {}
    };
  },
  computed: {
    ...mapGetters(["businessInfo"])
  },
  methods: {
    open() {
      this.show = true;
    }
  }
};
</script>

<style lang="less" scoped>
.service {
  position: fixed;
  right: 0;
  bottom: 100px;
  z-index: 100;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px 0 hsla(0, 0%, 80.4%, 0.5);

  .service-item {
    width: 44px;
    height: 44px;
    display: flex;
    background: @white;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px;
    cursor: pointer;
    img {
      width: 22px;
    }
  }
}

.pop-qrcode {
  padding: 6px;
  text-align: center;
  img {
    width: 92px;
  }

  .text {
    color: @text-color-2;
    font-size: 13px;
    margin-top: 2px;
  }
}
</style>
